class Car:
    def __init__(self, color, wheels):  # 定义有参构造方法
        self.color = color                 # 添加属性color
        self.wheels = wheels               # 添加属性wheels
    def info(self):
        print(self.color)
        print(self.wheels)
car = Car(color="红色", wheels=4)
car.info()
